<form enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>&submitted=1" method="POST">
<input type="hidden" name="id" value="<?php echo $c->song->id; ?>"/>
<h3>Song</h3>
<table id="data">
<tr><th>Title</td><td><input type="text" name="title" value="<?php echo $c->song->title; ?>" /></td></tr>
<tr><th>Author</td><td><input type="text" name="author" value="<?php echo $c->song->author; ?>" /></td></tr>
<tr><th>Key</td><td><?php echo dropdown("key_played", $c->song->key_played, "songkey"); ?></td></tr>
<tr><th>Active</td><td><input type="checkbox" name="active" value="T" <?php if ($c->song->active == "T") echo " checked"; ?>/></td></tr>
<tr><th>Audio</td><td><div id="removeSongDiv">
		<?php if ( strlen($c->song->audio) > 0) { ?>
			<input type="hidden" name="audio" value="<?php echo $c->song->audio; ?>" />
			<?php
			 echo $c->song->audio . " &nbsp;";
			 echo HtmlUtil::internalAsynchLink("[remove]", "removeSong", $userRoles, "", array("id" => $c->song->id)) . "<br/>";
		} else { ?>
			<input type="hidden" name="MAX_FILE_SIZE" value="7000000" />
			<input type="file" name="audioFile" />
		<?php } ?>
		</div>
</td></tr>
<tr><th>Info</th><td><textarea name="info" cols="80" rows="15"><?php echo $c->song->info; ?></textarea></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" name="action" value="Save" /><input type="submit" name="action" value="Cancel" /></td>
</table>
</form>